package com.atguigu.mapper;


import com.atguigu.pojo.Employee;
import org.apache.ibatis.annotations.MapKey;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

public interface SelectEmpMapper {

    Integer selectEmpById();

    List<Employee> findAllEmp();

    Employee findEmpById(Integer id);

    Employee findByEmpName(String name);

    void deleteEmpById(Integer id);

    void editEmp(Employee emp, Integer id);

    Employee findEmpByName(String name);

    @MapKey("id")
    Map<String, Object> findAllEmpMap();

    Long selectCount();

}
